<!--
 * @Description: 
 * @Author: charles
 * @Date: 2021-07-19 10:03:59
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-08-03 18:54:06
-->
<template>
  <!-- 底部 -->
    <div class="footer">
      <div class="address">
       {{address}}
      </div>
      <div class="copyright">
        版权所有：山西农业大学    晋ICP备05000473号         晋公网安备14072602000114号
      </div>
    </div>
    <!-- /底部 -->
</template>
<script>
import { get } from '../../utils/request'
export default {
  data(){
    return {
      address:""
    }
  },
  methods:{
    loadAddress(){
      let url = '/index/findByKey'
      let param = {name:"address"};
      get(url,param).then(resp => {
        let data = resp.data;
        if(data){
          this.address =  data.val;
        }
      })
    }
  },
  created(){
    this.loadAddress();
  }
}
</script>

<style lang="scss" scoped>
 // 底部样式
.footer {
  text-align: center;
}
</style>